package com.mr3chi.horoscopes;

import android.content.Context;

public class NavMenuItem implements NavDrawerItem{
	public static final int ITEM_TYPE = 1;
	
	private int id ;
    private String label ;  
    private int icon ;
    private int count;
    private boolean updateActionBarTitle;

	public NavMenuItem() {
		
	}
	
	public static NavMenuItem create( int id, String label,int count, int icon, boolean updateActionBarTitle, Context context ) {
		NavMenuItem item = new NavMenuItem();
        item.setId(id);
        item.setLabel(label);
        item.setCount(count);
        item.setIcon(icon);//context.getResources().getIdentifier( icon, "drawable", context.getPackageName())
        item.setUpdateActionBarTitle(updateActionBarTitle);
        return item;
    }
	
	@Override
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
        this.id = id;
    }

	@Override
	public String getLabel() {
		return label;
	}
	
	public void setLabel(String label) {
        this.label = label;
    }

	@Override
	public int getType() {
		return ITEM_TYPE;
	}
	
	public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

	@Override
	public boolean isEnabled() {
		return true;
	}
	
	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	@Override
	public boolean updateActionBarTitle() {
		return this.updateActionBarTitle;
	}
	
	public void setUpdateActionBarTitle(boolean updateActionBarTitle) {
        this.updateActionBarTitle = updateActionBarTitle;
    }
	
}
